import { CmdCode, EventCode } from '../../code/index';
import { CmdSignModel,WeiPageModel } from '../../models/index';
import { AHttpCmd } from '../base.cmd';

export class WeiPageListCmd extends AHttpCmd {
    constructor(private model:WeiPageModel) {
        super();
    }

    req(): CmdSignModel {
        return super.buildCmdSign(this.model);
    }

    resp(data: any): void {
    }

    error(model: CmdSignModel): void {
    }

    setParams(params:any){
        if(!this.model){
            this.model = new WeiPageModel();
        }
        Object.assign(this.model, params);
    }

    getCmdCode(): string {
        return CmdCode.WEI_PAGE_LIST;
    }
}
